package cn.lili.controller.goods;


import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.goods.entity.dos.GoodsBelong;
import cn.lili.modules.goods.entity.dto.GoodsBelongDTO;
import cn.lili.modules.goods.service.GoodsBelongService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 免税商品归属 前端控制器
 * </p>
 *
 * @author admin
 * @since 2024-03-07
 */
@RestController
@Api(tags = "免税商品归属接口")
@RequestMapping("/goods/goodsBelong")
@RequiredArgsConstructor
public class GoodsBelongController {


    private final GoodsBelongService goodsBelongService;

    /**
     * 查询归属列表: 如中国馆,欧洲馆
     *
     * @return
     */
    @GetMapping("/selectGoodsBelong")
    public ResultMessage<Page<GoodsBelong>> selectGoodsBelong(GoodsBelongDTO dto) {
        dto.setPageSize(20);
        return ResultUtil.data(goodsBelongService.selectGoodsBelong(dto));
    }


}
